/**
 * This file is Copyright © 2008 Software Craftsmen Limited. All Rights Reserved.
 */
package com.softwarecraftsmen.collections;

import org.jetbrains.annotations.NotNull;

import java.util.Locale;
import static java.util.Locale.UK;
import static java.lang.String.format;

public class CollectionException extends RuntimeException
{
	public CollectionException(final @NotNull Throwable cause, final @NotNull String templateMessage, final @NotNull Object... arguments)
	{
		super(format(UK, templateMessage, arguments), cause);
	}

	public CollectionException(final @NotNull String templateMessage, final @NotNull Object... arguments)
	{
		super(format(UK, templateMessage, arguments));
	}
}
